package com.hgw.Demo02_FactoryMethod.Exercises4_9_4;

/**
 * Data time:2021/12/12 10:59
 * StudentID:2019112118
 * Author:hgw
 * Description: 测试类
 */
public class Client {

    public static void main(String[] args) {
        CarFactory factory;
        Car car;
        factory = new BenzCarFactory();
        car = factory.createCar();
        System.out.println(car.getName());
    }
}
